package com.matt.domain.courseV2;

import com.matt.commons.model.Domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 成长观察学生记录v2
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "tc_growth_record")
public class GrowthObservationRecord extends Domain implements Serializable {
    private static final long serialVersionUID = 1L;

    @Column(columnDefinition = "text   COMMENT '儿心量表' ")
    private String label;

    @Column(columnDefinition = "text   COMMENT '格赛尔发育量表' ")
    private String content;

    @Column(columnDefinition = " int DEFAULT 0 COMMENT ' 月龄 ' ")
    private Integer monthAge;

    @Column(columnDefinition = "varchar(64)   COMMENT '宝宝ID' ")
    private String childrenId;

    @Column(columnDefinition = "varchar(255)   COMMENT '宝宝检查月龄' ")
    private String childrenMonthAge;

    @Column(columnDefinition = "char(2)   DEFAULT '0' COMMENT '状态：0未完成，1按时完成，2提前完成，3超时完成' ")
    private String  states = "0" ;

    /**
     * 附件
     */
    @Column(columnDefinition = "text    COMMENT  '附件列表JSON' ")
    private String  url;

    @Column(columnDefinition = "int(5)  DEFAULT 0  COMMENT  '超前天数' ")
    private Integer leadingDay;

    @Column(columnDefinition = "char(2)   DEFAULT '0' COMMENT '里程卡状态：0待生成，1已发送，2未发送' ")
    private String  cardStates = "0" ;

    @Column(columnDefinition = "varchar(255)   COMMENT '卡图片路径' ")
    private String cardUrl;

    @Column(columnDefinition = "varchar(32)   COMMENT '班级ID' ")
    private String classesId;

    @Column(columnDefinition = "varchar(32)  COMMENT '创建人'")
    private String createdBy;
}